package com.example.gobang.model;

import lombok.Data;

@Data
public class GameResponse {
    private String roomId;
    private int userId; // 落子玩家
    private int row;
    private int col;
    private int winner;
    public GameResponse(){}
    public GameResponse(String roomId, int userId, int row, int col, int winner) {
        this.roomId = roomId;
        this.userId = userId;
        this.row = row;
        this.col = col;
        this.winner = winner;
    }
    public GameResponse(String roomId, int userId, int winner) {
        this.roomId = roomId;
        this.userId = userId;
        this.row = -1;
        this.col = -1;
        this.winner = winner;
    }
}
